Skip to content

Vendor whatwg-fetch@3.6.20#56370

Closed
robhogan wants to merge 1 commit intomainfrom
export-D99854694
Closed

Vendor whatwg-fetch@3.6.20#56370
robhogan wants to merge 1 commit intomainfrom
export-D99854694

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

@robhogan robhogan commented Apr 8, 2026

Summary:
Vendor whatwg-fetch v3.6.20 directly into Libraries/Network/, replacing the npm dependency with a local copy.

whatwg-fetch has not had a release since December 2023 and appears to be unmaintained, by download numbers react-native is the dominant consumer (all this is unsurprising, since fetch is natively implemented in every browser).

It has several shortcomings we (with the OSS community) could improve on - one important one being that whatwg-fetch's fetch() does not resolve immediately on receipt of headers, only on completion.

This takes the single source file from the whatwg-fetch npm package as Libraries/Network/whatwg-fetch.js, and its accompanying types, marking as originally vendored from whatwg-fetch v3.6.20 (Copyright (c) 2014-2023 GitHub, Inc., MIT license).

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D99854694

Summary:
Vendor `whatwg-fetch` v3.6.20 directly into `Libraries/Network/`, replacing the npm dependency with a local copy.

`whatwg-fetch` has not had a release since December 2023 and appears to be [unmaintained](JakeChampion/fetch#1482), by download numbers `react-native` is the dominant consumer (all this is unsurprising, since `fetch` is natively implemented in every browser).

It has several shortcomings we (with the OSS community) could improve on - one important one being that `whatwg-fetch`'s `fetch()` does not resolve immediately on receipt of headers, only on completion.

This takes the single source file from the `whatwg-fetch` npm package as `Libraries/Network/whatwg-fetch.js`, and its accompanying types, marking as originally vendored from whatwg-fetch v3.6.20 (Copyright (c) 2014-2023 GitHub, Inc., MIT license).

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D99854694
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 8, 2026
@facebook-github-tools facebook-github-tools bot added p: Facebook Partner: Facebook Partner labels Apr 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 8, 2026

@robhogan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D99854694.

@meta-codesync meta-codesync bot closed this in e7df8fa Apr 8, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Apr 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 8, 2026

This pull request has been merged in e7df8fa.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in e7df8fa

When will my fix make it into a release? | How to file a pick request?

@robhogan robhogan deleted the export-D99854694 branch April 9, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants